<?php
return [
    'id' => 'integralconfigitem-form',
    'template' => 'form_default',
    'enableClientValidation' => false,
    'enableAjaxValidation' => false,
    'options' => ['class' => 'form-validate'],
    'models' => [
        'integralconfigitem' => [
            'title' => '添加',
            'th_with' => 120,
            'elements' => [
                'config_id' => [
                    'type'=>'widget',
                    'class'=> \kartik\select2\Select2::className(),
                    'data' => \yii\helpers\ArrayHelper::map(\common\components\helpers\Fun::cache('integralconfig_cache'), 'id', 'name'),
                ],
                'name' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text'],

                ],
                'formula' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text'],

                ],
                'template' => [
                    'type' => 'textarea',
                    'hint' => '模板配置参数设置',
                    'options' => ['rows' => 3, 'cols' => 30,'class'=>'yx-mb0']
                ],
            ],
        ]
    ]
];

